package com.pay.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 平台菜单表
 * </p>
 *
 * @author Peng
 * @since 2018-12-05
 */
@TableName("t_sys_menus")
public class SysMenus implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableField(exist=false)
	private List<SysMenus> childs ;
	
	@TableField(exist=false)
	private Integer isHave ; //是否拥有标志位 1拥有 0未拥有
	
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	private Integer parentid;

	/**
	 * 菜单名称
	 */
	private String menuname;

	/**
	 * 访问地址
	 */
	private String url;

	/**
	 * 0有效 -1无效
	 */
	private Integer status;

	/**
	 * 创建时间
	 */
	private Date createtime;

	/**
	 * 排序
	 */
	private Integer sort;

	/**
	 * 子菜单数量
	 */
	private Integer num;

	/**
	 * 菜单样式标识
	 */
	private String icon;

	/**
	 * 是否是菜单 0是菜单 1是操作
	 */
	private Integer ismenu;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getParentid() {
		return parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	public String getMenuname() {
		return menuname;
	}

	public void setMenuname(String menuname) {
		this.menuname = menuname;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Integer getIsmenu() {
		return ismenu;
	}

	public void setIsmenu(Integer ismenu) {
		this.ismenu = ismenu;
	}
	
	public List<SysMenus> getChilds() {
		return childs;
	}

	public void setChilds(List<SysMenus> childs) {
		this.childs = childs;
	}

	public Integer getIsHave() {
		return isHave;
	}

	public void setIsHave(Integer isHave) {
		this.isHave = isHave;
	}

	@Override
	public String toString() {
		return "SysMenus{" +
				"id=" + id +
				", parentid=" + parentid +
				", menuname=" + menuname +
				", url=" + url +
				", status=" + status +
				", createtime=" + createtime +
				", sort=" + sort +
				", num=" + num +
				", icon=" + icon +
				", ismenu=" + ismenu +
				"}";
	}
}
